<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="js/jquery.js"></script>
<link rel="stylesheet" type="text/css" href="css/base.css" />
<script type="text/javascript" src="js/jquery-2.0.2.min.js"></script>
<script type="text/javascript" src="js/dsdialog.js"></script>
<STYLE type=text/css>
body{
BACKGROUND-COLOR: #d6dff7;
}
.main{
   width:100%;
   margin-top:30px;
   height:400px;
}
.main table{
   width:900px;
   margin-left:auto;
   margin-right:auto;
   border:1px solid #d6dff7;
}
.main table .myMessage{
   height:50px;
   font-size:30px;
   background-color:#d6dff7;
}
.main table td{
   height:30px;
   background-color:#d6dff7;
   font-size:20px;
}
.main .update{
	 width:900px;
	 height:100px;
	 margin:20px auto;
 
}
.main .update a{
    float:right;
    TEXT-DECORATION: none;
    font-size:20px;
    color:#799AE1;
    text-align:right;
    margin-buttom:20px;
}
.main .update a:hover{
    TEXT-DECORATION:underline;
    color:#799AE1;
}
</STYLE>
<script>
function getMessage(){
	$.ajax({
		type: "get",
		url: "MessageAction_getMessage",
		dataType: 'json',
		async:true,
		success: function(result) {
			if(result[0]!=null){
				$(".name").text("姓 名: "+result[0].name);
				$(".sex").text("性 别: "+result[0].sex);
				$(".age").text("年 龄: "+result[0].age);
				$(".tall").text("身 高: "+result[0].tall);
				$(".bir").text("生 日: "+result[0].birthday.substring(0,10));
				$(".tel").text("电 话: "+result[0].telephone);
				$(".qq").text("Q Q: "+result[0].qq);
				$(".add").text("地 址: "+result[0].address);
				$(".hobby").text("爱 好: "+result[0].hobby);
			}else{
				ds.dialog({
					   title : '消息提示',
					   content : '你还未完善资料！',
					   timeout:1	  
				});
			}
		}  
	});
}
</script>
</head>     
 <body onload="getMessage()">
 <div class="main">
<table border="1"  cellspacing="0"  align="center">
    <tr><th colspan="5" class="myMessage">个人资料</th>
</tr>
    <tr>
       <td class="name">姓 名: </td><td class="sex">性 别: </td><td class="age">年 龄:</td><td class="tall">身 高: </td><td class="bir">生 日: </td>
    </tr>
    <tr>
       <td class="tel">电 话: </td><td class="qq">Q Q: </td><td class="hobby" colspan="3">爱  好: </td>
    </tr>
     <tr>
       <td class="add" colspan="5">地 址: </td>
    </tr>
    </table>
    <div class="update">
        <a href="updateUserInfo.html" target="mainFrame"><b>完善资料</b></a>
    </div>
 </div> 
 </body>  
</html>